home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Internet / FWSaveAs.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.0 KB  |  76 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWSaveAs.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. //
  10. //    ODFRC declaration for a Save As resource which holds binding and user string
  11. //    information. This is used to build a popup menu in the Save As dialog,
  12. //    used to select a kind for exporting data.
  13.  
  14. #ifndef FWSAVEAS_FR
  15. #define FWSAVEAS_FR
  16.  
  17. #ifndef FWSTRING_FR
  18. #include "FWString.fr"
  19. #endif
  20.  
  21. #ifndef FWSAVEAS_K
  22. #include "FWSaveAs.k"
  23. #endif
  24.  
  25. /*
  26.     FW_SaveAsInfo has several bits of information:
  27.         prompt (usually "Save a copy as:")
  28.         Externalization information (kinds and user names).
  29.     
  30.     Externalization information is available elsewhere: in the nmap resources
  31.     and the kinds registry (FW_CKind). However these are not sufficient for our
  32.     needs, so as much as I'd like to avoid it, we have some duplication of
  33.     information. Problems include: nmaps are MacOS-only; nmaps don't indicate 
  34.     if a type can be exported or only imported; FW_CKind list doesn't include
  35.     "Internet Reference".
  36. */
  37.  
  38. type FW_RSaveAsInfo (FW_kSaveAsResourceType) {
  39.     //
  40.     // Prompt (example: "Save a copy as:")
  41.     //
  42.     prompt: FW_RStringData;
  43. #if 0
  44.     integer = $$CountOf (Prompts);
  45.     array Prompts {
  46.         FW_RStringData;
  47.     };
  48. #endif
  49.     
  50.     //
  51.     // Kinds and user names. These aren't quite the same as Binding names
  52.     // so we can't use OpenDoc's namespace utilities to get the user names.
  53.     // Example entry: kODISOPrefix "MIME:image/jpeg", { "as JPEG" };
  54.     //
  55.     integer = $$CountOf (Kinds);
  56.     array Kinds {
  57.         FW_RStringData;
  58.     };
  59. #if 0
  60.     integer = $$CountOf (Kinds);
  61.     array Kinds {
  62. //        MacCreator: longint;    // 'JVWR'
  63. //        MacFileType: longint;    // 'JFIF'
  64. //        WinExtension: wstring;    // ".jpg"
  65.         Kind: wstring;            // kODISOPrefix "MIME:image/jpeg"
  66.         integer = $$CountOf (Names);
  67.         array Names {
  68.             FW_RStringData;
  69.         };
  70.     };
  71. #endif
  72. };
  73.  
  74. #endif // FWSAVEAS_FR
  75.  
  76.